Remove/refactor some .unwraps.
authorHuon Wilson <dbau.pp+github@gmail.com>
Fri, 27 Jun 2014 11:55:11 +0000 (21:55 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Fri, 27 Jun 2014 11:55:11 +0000 (21:55 +1000)
commit35431334142b189f0bc1191a662f8704a12d66f7
tree3619302df9635d83ff729a7c9c6745f160ef3463
parent2f0ac4a7026dac5e7fa5400e3e3ff9fa322746a8
Remove/refactor some .unwraps.

Many of these had some precondition being changed that guaranteed they'd
never happen, but could be expressed to just avoid the `.unwrap`
entirely (easier to check).

Other `Option` unwraps were changed to have a mildly more informative
error message by using `.expect`.
src/bin/cargo-verify-project.rs
src/cargo/core/package.rs
src/cargo/ops/cargo_rustc.rs
src/cargo/util/config.rs